// pages/my/my.js
Page({
    data:{
        avatarUrl:'',
        nickName:''
    },
    onShow(){
        const avatarUrl = wx.getStorageSync("avatarUrl");
        const nickName = wx.getStorageSync("nickName");
        this.setData({
            avatarUrl,
            nickName
        })
    }
})